(function () {
    LoLTH.namespace('LoLTH.tooltips');

    var AIT = LoLTH.tooltips;

    AIT.AddItemTooltips = function() {
        var items = $('.player-items .dd-icon');
        items.each(function (k, v) {
            var $item = $(this),
                position = $item.css('background-position');
            var coords = position.split(" ");
            coords[0] = coords[0].replace("px","");
            coords[1] = coords[1].replace("px","");
            var itemID = LoLTH.Fetch.ItemId(coords[0], coords[1]);
            $item.attr({
                "data-rg-id": itemID,
                "data-rg-name": "item"
            });
        });
    };
}());
